package com.happok.onlineclass.usermanagement.setting.service;

import com.happok.onlineclass.usermanagement.setting.dto.EmailSettingDTO;
import com.happok.onlineclass.usermanagement.setting.dto.EmailSettingInfoDTO;

/**
 * 功能说明
 *
 * @author : chenac
 * @version : v1.0
 * @date : 2021/10/12 11:21
 * @updateUser : chenac
 * @updateTime : 2021/10/12 11:21
 * @updateRemark : 无
 * @since : Springboot 2.5.2
 */
public interface EmailService {
    /**
     * 修改邮箱设置
     *
     * @param emailSetting
     * @author: chenac
     * @date: 13:52
     * @execption:
     * @return: void
     */
    void updateEmailSetting(EmailSettingDTO emailSetting);

    /**
     * 查询邮箱设置-密码已加密
     *
     * @param
     * @author: chenac
     * @date: 11:21
     * @execption:
     * @return: com.happok.onlineclass.usermanagement.setting.dto.EmailSettingInfoDTO
     */
    EmailSettingInfoDTO getEmailSetting(boolean encrypt);

    /**
     * 校验邮箱并链接邮箱服务器
     *
     * @param
     * @author: chenac
     * @date:  11:39
     * @execption:
     * @return: void
     */
    void checkAndConnectEmail();
}